import request from '@/utils/request'

// 查询IK拓展分词列表
export function listIkdict(query) {
  return request({
    url: '/search/ikdict/list',
    method: 'get',
    params: query
  })
}

// 查询IK拓展分词详细
export function getIkdict(id) {
  return request({
    url: '/search/ikdict/' + id,
    method: 'get'
  })
}

// 新增IK拓展分词
export function addIkdict(data) {
  return request({
    url: '/search/ikdict',
    method: 'post',
    data: data
  })
}

// 修改IK拓展分词
export function updateIkdict(data) {
  return request({
    url: '/search/ikdict',
    method: 'put',
    data: data
  })
}

// 删除IK拓展分词
export function delIkdict(id) {
  return request({
    url: '/search/ikdict',
    method: 'delete',
    data: {
      ids: id
    }
  })
}
